package com.dduggs.controller;

/**
 * @author Created by CJS on 2018/4/9
 * @ClassName:
 * @Description:
 */
public class test {

    public static void main(String[] args) {

        String oristr = "江西省赣州市于都县祁禄山镇横龙村黄竹坪组6号qqqwwweeeaaasssddd";
        StringBuffer stringBuffer = new StringBuffer();
        Integer strlength = oristr.length();
        Integer step = 5;
        Integer start = 0;
        Integer account = 0;
        while (strlength > step) {

            stringBuffer.append(oristr, start, account * step + step);
            stringBuffer.append("\n");
            start += step;
            strlength -= step;
            account++;
        }

        stringBuffer.append(oristr, account * step, oristr.length());
        System.out.println(stringBuffer);
    }
}
